/**
 * 打印机相关
 *
 */
import request from '@/utils/request'

// 获取云喇叭列表
export function listSpeaker(params) {
  return request({
    url: '/scrm_printer_admin/manage/speaker/list',
    method: 'get',
    params: params
  })
}

// 编辑云喇叭
export function addSpeaker(data) {
  return request({
    url: '/scrm_printer_admin/manage/speaker/add',
    method: 'post',
    data: data
  })
}

// 编辑云喇叭
export function updateSpeaker(data) {
  return request({
    url: '/scrm_printer_admin/manage/speaker/update',
    method: 'post',
    data: data
  })
}

// 删除打印机
export function delSpeaker(params) {
  return request({
    url: '/scrm_printer_admin/manage/speaker/delete',
    method: 'delete',
    params: params
  })
}
